/**
 *  数采地图 - 集团 event事件处理
 */
import { getDvaApp } from 'umi';
import Eventproxy from 'eventproxy';

var event = new Eventproxy();

var changeState = obj => {
  var store = getDvaApp()._store;
  store.dispatch({
    type: 'group/setState',
    payload: obj,
  });
};

// 地图点击
event.on('mapClick', async function(data) {
  console.log(data);
});

export default event;
